package com.wc.AlgoOJ_train.train1.c6.A604;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/10 21:23
 * @description 首字母变大写
 * http://43.138.190.70:8888/p/A604
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String s = sc.nextLine();
            char[] chs = s.toCharArray();
            chs[0] = Character.toUpperCase(chs[0]);
            int len = chs.length;
            boolean flg = false;
            for (int i = 1; i < len; i++) {
                if (chs[i] == ' ') {
                    flg = true;
                } else {
                    if (flg) {
                        chs[i] = Character.toUpperCase(chs[i]);
                    }
                    flg = false;
                }
            }
            System.out.println(new String(chs));
        }
    }
}
